package com.example.shiwu.db.model;


import com.example.shiwu.db.annotation.DbFiled;
import com.example.shiwu.db.annotation.DbPrimaryKey;
import com.example.shiwu.db.annotation.DbTable;

@DbTable("tb_user")
public class User {
    //    是不是 变量名
    @DbPrimaryKey(value = "id", isAuto = true)
    @DbFiled("id")
    public Integer id;
    @DbFiled("name")
    public String name;//
    @DbFiled("password")
    private String password; //密码
    @DbFiled("status")
    private Integer status; //登录绑定状态0未登录、1登录
    @DbFiled("type")
    private Integer type; //类型 1管理员、0用户



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public User() {
    }
    public User(String name) {

        this.name = name;
    }
    public User(Integer status) {

        this.status = status;
    }
    public User(String name,String password) {

        this.name = name;
        this.password = password;
    }
    public User(String name,String password,Integer status) {

        this.name = name;
        this.password = password;
        this.status = status;
    }

    public User(String name, String password, Integer status, Integer type) {
        this.name = name;
        this.password = password;
        this.status = status;
        this.type = type;
    }
}
